﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="AddHonorCert.ascx.vb" Inherits="WebForm_AddHonorCert" %>
<My:MyFormView ID="fv" runat="server" DataNames="VolunteerID">
    <ItemTemplate>
        <table>
            <tr>
                <td align="right">
                    <asp:Label ID="lblVolunteerName" runat="server" meta:resourcekey="lblVolunteerName"></asp:Label>
                </td>
                <td align="left">
                    <asp:Label ID="lblVolunteerNameText" runat="server" Text='<%# Bind("VolunteerName") %>'></asp:Label>
                </td>
            </tr> 
            <tr>
                <td align="right">
                    <asp:Label ID="lblType" runat="server" meta:resourcekey="lblType"></asp:Label>
                </td>
                <td align="left">
                    <asp:DropDownList ID="ddlType" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td align="right" style="height: 45px">
                    <asp:Label ID="lblHonorCertCode" runat="server" meta:resourcekey="lblHonorCertCode"></asp:Label>
                </td>
                <td align="left" style="height: 45px">
                    <asp:TextBox ID="txtHonorCertCode" runat="server" MaxLength="8" Text='<%# Bind("HonorCertCode") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvHonorCertCode" runat="server" ControlToValidate="txtHonorCertCode" 
                        Display="None" meta:resourcekey="rfvHonorCertCode" ValidationGroup="vInsert"></asp:RequiredFieldValidator></td>            
            </tr>   
            <tr>
                <td align="right">
                    <asp:Label ID="lblApplyDate" runat="server" meta:resourcekey="lblApplyDate"></asp:Label>
                <td align="left">
                    <My:CalendarTextBox ID="txtApplyDate" runat="server" Text='<%#Bind("ApplyDate") %>' MaxYearSteps="4" />
                </td>
            </tr>                     
            <tr>
                <td align="right">
                    <asp:Label ID="lblIssueDate" runat="server" meta:resourcekey="lblIssueDate"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtIssueDate"
                        Display="None" meta:resourcekey="rfvIssueDate" SetFocusOnError="True" ValidationGroup="vInsert"></asp:RequiredFieldValidator></td>
                <td align="left">
                    <My:CalendarTextBox ID="txtIssueDate" runat="server" Text='<%#Bind("IssueDate") %>' />
                    <asp:CompareValidator meta:resourcekey="cvIssueDate" ID="cvIssueDate" runat="server" ControlToValidate="txtIssueDate" Display="None"
                        Operator="DataTypeCheck" SetFocusOnError="True" Type="Date" ValidationGroup="vInsert"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Label ID="lblEndDate" runat="server" meta:resourcekey="lblEndDate"></asp:Label>
                <td align="left">
                    <My:CalendarTextBox ID="txtEndDate" runat="server" Text='<%#Bind("EndDate") %>' MaxYearSteps="4" />
                </td>
            </tr>  
              <tr>
                <td align="right">
                    <asp:Label ID="lblWorkHour" runat="server" meta:resourcekey="lblWorkHour" Visible="false"></asp:Label>
                <td align="left">
                     <asp:TextBox ID="txtWorkHour" runat="server" Text='<%# Bind("WorkHour") %>' Visible="false"></asp:TextBox>
                </td>
            </tr> 
            <tr valign="top">
                    <td align="right">
                        <asp:Label ID="lblComment" runat="server" meta:resourcekey="lblComment"></asp:Label>
                    </td>
                    <td align="left" valign="top">
                        <asp:TextBox ID="txtComment" runat="server" TextMode="MultiLine" Rows="4" Text='<%# Bind("Comment") %>' MaxLength="600" Width="250px"></asp:TextBox>                        　
                    </td>
            </tr>
            <tr>
                <td align="right">
                </td>
                <td align="left">

                    <asp:Button ID="btnAdd" runat="server" meta:resourcekey="btnAdd" CommandName="btnSave" ValidationGroup="vInsert" />
                    <ajaxToolkit:ConfirmButtonExtender ID="cbAdd" runat="server" TargetControlID="btnAdd" meta:resourcekey="cbAdd"></ajaxToolkit:ConfirmButtonExtender>
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
            ShowSummary="False" ValidationGroup="vInsert" />
    </ItemTemplate>
</My:MyFormView>
